<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
	<title>购物车 - iWebShop开源商城</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<link type="image/x-icon" th:href="@{/favicon.ico}" href="/favicon.ico" rel="icon">
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/jquery-1.12.4.min.js}" src="../static/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/form.js}" src="../static/js/form.js"></script>
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/validate.js}" src="static/js/validate.js"></script><link rel="stylesheet" type="text/css" th:href="@{/css/style.css}" href="static/css/style.css" />
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/artdialog.js}" src="static/js/artdialog.js"></script><script type="text/javascript" charset="UTF-8" th:src="@{/static/js/iframetools.js}" src="static/js/iframetools.js"></script><link rel="stylesheet" type="text/css" th:href="@{/css/white.css}" href="static/css/white.css" />
	<script type="text/javascript" charset="UTF-8" th:src="@{/js/arttemplate.js}" src="static/js/arttemplate.js"></script><script type="text/javascript" charset="UTF-8" th:src="@{/static/js/arttemplate-plugin.js}" src="static/js/arttemplate-plugin.js"></script>
	<!--[if IE]><script src="../static/js/html5.js"></script><![endif]-->
	<script type='text/javascript' th:src="@{/js/site.js}" src='static/js/site.js'></script>
	<script type='text/javascript' th:src="@{/js/public.js}" src='static/js/public.js'></script>
	<link rel="stylesheet" th:href="@{/css/style_1.css}" href="static/css/style_1.css">

	<meta name='keywords' content='开源商城系统,开源网店系统,开源电子商务,商城系统源码,多用户商城源码'>
	<meta name='description' content='iwebshop是基于php开发b2c2c开源多用户商城系统,支持商家入驻,支持微商城,手机移动商城,APP商城多为一体的电子商务系统'></head>
<body>
<body>
<div id="header" class="wrap">
	<div id="logo"><img th:src="@{/images/logo.gif}" src="images/logo.gif"/></div>
	<div class="help" th:insert="~{help :: help}">
	</div>
	<header class="header">
		<!-- logo与搜索 -->
		<div class="body_wrapper">
			<div class="web">
				<!-- logo -->
				<div class="logo_layer">
					<a title="iWebShop开源商城" href="/" class="logo">
						<img src="../static/picture/logo.png">
					</a>
				</div>
				<!-- 注册与登录 -->
				<div class="body_toolbar">
					<div class="body_toolbar_btn login_reg">
						<a href="/simple/login">登录</a>
						<em> | </em>
						<a class="reg" href="/simple/reg">注册</a>
					</div>
				</div>
				<!-- 注册与登录 -->
				<!--购物车模板 开始-->
				<div class="header_cart" name="mycart">
					<a href="/cart.html" class="go_cart">
						<i class="fa fa-shopping-cart"></i>
						<em class="sign_total" name="mycart_count"]>0</em>
					</a>
					<div class="cart_simple" id="div_mycart"></div>
				</div>
				<script type='text/html' id='cartTemplete'>
					<div class='cart_panel'>
						<%if(goodsCount){%>
						<!-- 购物车物品列表 -->
						<ul class='cart_list'>
							<%for(var item in goodsData){%>
							<%var data = goodsData[item]%>
							<li id="site_cart_dd_<%=item%>">
								<em><%=(window().parseInt(item)+1)%></em>
								<a target="_blank" href="/site/products/id/<%=data['goods_id']%>">
									<img src="<%=webroot(data['img'])%>">
								</a>
								<a class="shop_name" target="_blank" href="/site/products/id/<%=data['goods_id']%>"><%=data['name']%></a>
								<div class="shop_price"><p>￥ <%=data['sell_price']%> <span>x <%=data['count']%></span></p></div>
								<i class="fa fa-remove" onclick="removeCart('<%=data['id']%>','<%=data['type']%>');$('#site_cart_dd_<%=item%>').hide('slow');"></i>
							</li>
							<%}%>
						</ul>
						<!-- 购物车物品列表 -->
						<!-- 购物车物品统计 -->
						<div class="cart_total">
							<p>
								共<span name="mycart_count"><%=goodsCount%></span>件
								总额：<em name="mycart_sum">￥<%=goodsSum%></em>
							</p>
							<a href="/cart.html">结算</a>
						</div>
						<!-- 购物车物品统计 -->
						<%}else{%>
						<!-- 购物车无内容 -->
						<div class='cart_no'>购物车空空如也~</div>
						<%}%>
					</div>
				</script>
				<!--购物车模板 结束-->
				<!-- 搜索框 -->
				<div class="search_box">
					<!-- 搜索内容 -->
					<form method='get' action='/index.php'>
						<input type='hidden' name='controller' value='site'>
						<input type='hidden' name='action' value='search_list'>
						<div class="search">
							<input type="text" name='word' class="search_keyword" autocomplete="off">
							<button class="search_submit" type="submit">
								<i class="fa fa-search"></i>
							</button>
						</div>
					</form>
					<!-- 热门搜索 -->
					<div class="search_hotwords">
						<a href="/search.html?word=%E7%9C%9F%E7%9A%AE%E5%A5%B3%E5%8C%85">真皮女包</a>
						<a href="/search.html?word=%E8%A1%AC%E8%A1%A3">衬衣</a>
					</div>
				</div>
			</div>
		</div>
		<!-- logo与搜索 -->

		<div class="nav_bar">
			<div class="home_nav_bar user_center">
				<!-- 导航栏 -->
				<div class="web">
					<!-- 分类列表 -->
					<!-- 导航索引 -->
					<div class="nav_index">
						<ul class="nav">
							<li class="user_nav_index home_nav_index"><a href="/site/index"><span>首 页</span></a></li>
							<li class="user_nav_index home_nav_index"><a href="http://www.aircheng.com"><span>官网首页</span></a></li>
							<li class="user_nav_index home_nav_index"><a href="/site/seller"><span>商家列表</span></a></li>
							<li class="user_nav_index home_nav_index"><a href="/admin/index"><span>后台管理</span></a></li>
							<li class="user_nav_index home_nav_index"><a href="/seller/index"><span>商家管理</span></a></li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</header>

	<!--主要模板内容 开始-->
	<div class="home_content">
		<script type='text/javascript' src="../static/js/cart.js"></script>
		<section class="breadcrumb">
			<span>您当前的位置：</span> <a href="/">首页</a> » 购物车
		</section>
		<section class="web">
			<div id="cart_prompt" class="cart_prompts none">
				<strong>恭喜，您的订单已经满足了以下优惠活动！</strong>
				<ol id="cart_prompt_box"></ol>
			</div>
			<!--促销规则模板-->
			<script type="text/html" id="promotionTemplate">
				<li><%=item['plan']%>，<%=item['info']%></li>
			</script>

			<section class="cart_table">
				<h3><i class="fa fa-shopping-cart"></i>查看购物车</h3>
				<table>
					<colgroup>
						<col width="30px">
						<col width="115px">
						<col>
						<col width="120px">
						<col width="120px">
						<col width="120px">
						<col width="116px">
						<col width="120px">
						<col width="120px">
					</colgroup>
					<form th:action="@{/product/shoping_result}">
						<table>
							<tr>
								<th>商品名称</th>
								<th>单价</th>
								<th>数量</th>
								<th>操作</th>
							</tr>
							<tbody>
							<tr id="product_id_1" th:each="prod : ${session.car}">
								<td class="thumb"><img th:src="@{'/images/product/'+${prod.epFileName}}" />
									<a href="product-view.html" th:text="${prod.epName}"></a></td>
								<td class="price" id="price_id_1">
									<span th:text="${'￥'+prod.epPrice}">￥99.00</span>
									<input type="hidden" value="99" />
								</td>
								<td class="number">
									<dl>
										<dt><input id="number_id_1" type="text" name="number" th:value="${prod.count}+1"  disabled="disabled"/></dt>
										<dd onclick="reloadPrice(1,true);">+</dd>
										<dd onclick="reloadPrice(1,false);">-</dd>
									</dl>
								</td>
								<td class="delete"><a href="javascript:delShopping(1);">删除</a></td>
							</tr>
							</tbody>
						</table>
						<div class="button"><input type="submit" value="结算"/></div>
					</form>
				<div class="cart_btn">
					<div class="clear_cart_btn" onclick="delModel({msg:'确定要清空购物车么？',link:'/simple/clearCart'});">
						<i class="fa fa-remove"></i>
						<span>清空购物车</span>
					</div>
					<div class="go_back_btn" onclick="window.history.go(-1);">
						<i class="fa fa-reply"></i>
						<span>继续购物</span>
					</div>
				</div>
			</section>
		</section>
	</div>
	<!--主要模板内容 结束-->

	<footer class="foot">
		<section class="service">
			<ul>
				<li class="item1">
					<i class="fa fa-star"></i>
					<strong>正品优选</strong>
				</li>
				<li class="item2">
					<i class="fa fa-globe"></i>
					<strong>上市公司</strong>
				</li>
				<li class="item3">
					<i class="fa fa-inbox"></i>
					<strong>300家连锁门店</strong>
				</li>
				<li class="item4">
					<i class="fa fa-map-marker"></i>
					<strong>上百家维修网点 全国联保</strong>
				</li>
			</ul>
		</section>
		<section class="help">
			<div class="prompt_link">
				<dl class="help_1">
					<dt>
						<p class="line"></p>
						<p class="title"><a href="/site/help_list/id/3">购物指南</a></p>
					</dt>
					<dd><a href="/help.html?id=4">购物流程</a></dd>
					<dd><a href="/help.html?id=26">会员制度</a></dd>
					<dd><a href="/help.html?id=27">积分说明</a></dd>
					<dd><a href="/help.html?id=28">交易条款</a></dd>
					<dd><a href="/help.html?id=29">订单状态</a></dd>
				</dl>
				<dl class="help_2">
					<dt>
						<p class="line"></p>
						<p class="title"><a href="/site/help_list/id/4">支付帮助</a></p>
					</dt>
					<dd><a href="/help.html?id=30">货到付款</a></dd>
					<dd><a href="/help.html?id=31">在线支付</a></dd>
					<dd><a href="/help.html?id=32">银行电汇</a></dd>
					<dd><a href="/help.html?id=33">余额支付</a></dd>
					<dd><a href="/help.html?id=53">支付帮助</a></dd>
				</dl>
				<dl class="help_3">
					<dt>
						<p class="line"></p>
						<p class="title"><a href="/site/help_list/id/6">配送帮助</a></p>
					</dt>
					<dd><a href="/help.html?id=34">配送范围及运费</a></dd>
					<dd><a href="/help.html?id=35">上门自提</a></dd>
					<dd><a href="/help.html?id=36">加急快递</a></dd>
					<dd><a href="/help.html?id=37">商品验货与签收</a></dd>
					<dd><a href="/help.html?id=38">EMS/邮政普包</a></dd>
				</dl>
				<dl class="help_4">
					<dt>
						<p class="line"></p>
						<p class="title"><a href="/site/help_list/id/5">售后服务</a></p>
					</dt>
					<dd><a href="/help.html?id=39">换货说明</a></dd>
					<dd><a href="/help.html?id=40">退货说明</a></dd>
					<dd><a href="/help.html?id=41">退/换货注意事项</a></dd>
					<dd><a href="/help.html?id=42">余额的使用与提现</a></dd>
					<dd><a href="/help.html?id=43">发票制度</a></dd>
				</dl>
				<dl class="help_5">
					<dt>
						<p class="line"></p>
						<p class="title"><a href="/site/help_list/id/7">帮助信息</a></p>
					</dt>
					<dd><a href="/help.html?id=44">关于我们</a></dd>
					<dd><a href="/help.html?id=45">常见问题</a></dd>
					<dd><a href="/help.html?id=46">找回密码</a></dd>
					<dd><a href="/help.html?id=47">退订邮件/短信</a></dd>
					<dd><a href="/help.html?id=48">联系客服</a></dd>
				</dl>
			</div>
			<div class="contact">
				<p class="line"></p>
				<em></em>
				<span>24小时在线客服(仅收市话费)</span>
				<br>
				<input type="text" class="input_text" name='orderinfo' placeholder="输入您的电子邮箱地址" />
				<a href="javascript:void(0)" onclick="orderinfo();" value="订阅">订阅</a>
			</div>
		</section>
		<section class="copy">
			<div class="footer" style="text-align:center"><p class="links"><a href="">关于我们</a>|<a href="">常见问题</a>|<a href="">安全交易</a>|<a href="">购买流程</a>|<a href="">如何付款</a>|<a href="">联系我们</a>|<a href="">合作提案</a></p><p class="copyright">Powered by <a href="http://www.aircheng.com">iWebShop</a></p>Copyright © 2005-2014 <a class="copyys" target="_blank" href="http://beian.miit.gov.cn/">鲁ICP备13031417号</a></div>	</section>
	</footer>

</body>
</html>
<script>
	//当首页时显示分类

	$(function(){
		$('input:text[name="word"]').val("");
	});

	//电子邮件订阅
	function orderinfo()
	{
		var email = $('[name="orderinfo"]').val();
		if(email == '')
		{
			alert('请填写正确的email地址');
		}
		else
		{
			$.getJSON('/site/email_registry',{email:email},function(content){
				if(content.isError == false)
				{
					alert('订阅成功');
					$('[name="orderinfo"]').val('');
				}
				else
					alert(content.message);
			});
		}
	}
</script>
<script type="text/javascript">
	_webUrl = "/_controller_/_action_/_paramKey_/_paramVal_";_themePath = "/views/huawei/";_skinPath = "/views/huawei/skin/default/";_webRoot = "/";
</script>